<template>
	<div class="wos-page">
		<div class="main">
			<div class="wos-search-line">
				<div class="wos-flex">
					<div class="wos-search-line-title">信息类型：</div>
					<div>
						<select name="drive">
							<option value="设备信息">设备信息</option>
						</select>
					</div>
				</div>
			</div>
			<wos-table :record="info"></wos-table>
		</div>
		<div class="console">
			<button @click="refresh">刷新</button>
		</div>
	</div>
</template>

<script>
    export default {
        name: "onlineusers",
        data:function(){
            return {
                info:""
            }
        },
        beforeMount() {
            this.getData()
        },
        methods:{
            getData(){
                let that = this
                this.axios.get('/api/sys/info.json')
                    .then(function (response) {
                        if( response.data.code == 200) {
                            that.info = response.data.data
                        }
                    })
                    .catch(function (error) {
                        that.$message.warn('服务器连接超时，请稍后重试')
                    });
            },
            refresh(){
                this.getData()
                this.jumpTop()
            }
        }
    }
</script>

